﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="month_edit.aspx.cs" Inherits="AnyOffice.general.report.manage.month_edit" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>修改月度汇报</title>
		
		<link rel="stylesheet" type="text/css" href="/module/date_selector/popcalendar.css">
			<script src="/module/date_selector/popcalendar.js"></script>
			<script src="/aspnet_client/core/function.js"></script>
			<script type="text/javascript" Language="JavaScript">		
		function CheckForm()
		{
			if (document.Form1.txtTitle.value=="")
			{
				alert("标题不能为空！");
				document.Form1.txtTitle.focus();
				return (false);
			}

            var slt = document.getElementById("ddlProductName");
            if (slt.value == "") {
                alert("请选择所属项目！");
                return (false);
            }


            if (document.Form1.ToId.value == "") {
                alert("请选择审核人员！");
                document.Form1.ToId.focus();
                return (false);
            }

            return true; 
		}

		function CheckFile()
		{
			if (document.Form1.fileAttach.value=="")
			{
				alert("请选择附件！");
				return (false);
			}   
			return true;	
		}		
			</script>
	</HEAD>
	<body class="bodycolor" style="padding-top:0;" topmargin="5">
		<form id="Form1" method="post" runat="server">
         <div class="main_div">
			<asp:Panel id="pnlMain" runat="server">
				<TABLE class="small" cellSpacing="0" cellPadding="3" width="90%" border="0">
					<TR>
						<TD class="tab_ti"><SPAN class="big3"> 修改月度汇报</SPAN>
						</TD>
					</TR>
				</TABLE>
				<TABLE width="600" cellSpacing="0" cellPadding="0" border="0" class="tab_pub" align="center">
					<TR>
						<TD class="ta_bg" style="width:100px">标题：</TD>
						<TD class="ta_txt">
							<asp:TextBox id="txtTitle" runat="server" Columns="50" MaxLength="200" CssClass="BigInput"></asp:TextBox></TD>
					</TR>

					 <TR>
						<TD class="ta_bg" width="100px">所属项目：</TD>
						<TD class="ta_txt">
                            <asp:DropDownList ID="ddlProductName" Width="400px" runat="server">
                            </asp:DropDownList>
							 </TD>
					</TR>
					<TR>
						<TD class="ta_bg">汇报月份：</TD>
						<TD class="ta_txt">
                         <asp:DropDownList ID="ddYear" runat="server">
                            </asp:DropDownList>
                            <asp:DropDownList ID="ddlMonth" runat="server">
                            </asp:DropDownList>
						</TD>
					</TR>
					<TR>
						<TD class="ta_bg">附件：</TD>
						<TD class="ta_txt">
							<asp:Panel id="pnlAttach" runat="server" Visible="False">
								<asp:ListBox id="ltbFileList" runat="server" CssClass="fl" Rows="1"></asp:ListBox>
								<asp:button id="btnRemoveFile" runat="server" CssClass="bnt_Add fl" Text="删除" onclick="btnRemoveFile_Click"></asp:button>
							</asp:Panel></TD>
					</TR>
					<TR>
						<TD class="ta_bg">附件上传：</TD>
						<TD class="ta_txt"><INPUT class="SmallInput fl" id="fileAttach" type="file" size="26" name="fileAttach" runat="server">
							<asp:button id="btnAddFile" runat="server" CssClass="bnt_Add fl" style="width:50px; display:inline-table;" Text="添加" onclick="btnAddFile_Click"></asp:button></TD>
					</TR>
					<TR>
						<TD class="ta_bg">本月成绩：</TD>
						<TD class="ta_txt">本月有什么好成绩？原因何在<br>
							<asp:TextBox id="txtNote1" runat="server" Columns="60" CssClass="BigInput" Rows="6" TextMode="MultiLine"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;
						</TD>
					</TR>
					<TR>
						<TD class="ta_bg">目标情况：</TD>
						<TD class="ta_txt">本月短期目标和长期目标是否按计划实施？说明实施情况和原因和主要解决方法<BR><BR>
							<asp:TextBox id="txtNote2" runat="server" Columns="60" CssClass="BigInput" Rows="3" TextMode="MultiLine"></asp:TextBox></TD>
					</TR>
					<TR>
						<TD class="ta_bg">进度与说明：</TD>
						<TD class="ta_txt">本季度目标实现进度和说明<br>
							<asp:TextBox id="txtNote3" runat="server" Columns="60" CssClass="BigInput" Rows="3" TextMode="MultiLine"></asp:TextBox></TD>
					</TR>
				 
					<TR>
						<TD class="ta_bg">管理人员：</TD>
						<TD class="ta_txt"><INPUT id="ToId" type="hidden" name="ToId" runat="server"> <TEXTAREA class="BigStatic fl" id="ToName" name="ToName" rows="2" readOnly wrap="yes" cols="40"
								runat="server"></TEXTAREA> <INPUT class="bnt_Choice fl" style="width:50px; display:inline-table;" title="选择人员" onClick="user_select('ToId','ToName','');" type="button"
								value="选择" name="button"> <INPUT class="bnt_Del fl" style="width:50px; display:inline-table;" title="清空人员" onClick="clear_double('ToId','ToName');" type="button"
								value="清空" name="button">
						</TD>
					</TR>
					<TR>
						<TD class="ta_bg">提醒：</TD>
						<TD class="ta_txt">
							<asp:CheckBox id="ckbSms" runat="server" Text="使用内部短信提醒管理人员" Checked="False"></asp:CheckBox>
							<asp:CheckBox id="ckbMobile" runat="server" Visible="False" Text="使用手机短信提醒管理人员"></asp:CheckBox>
						</TD>
					</TR>
					<TR align="center">
						<TD noWrap colSpan="2" class="bnt_con">
						    <table width="130" cellpadding="0" cellspacing="0" border="0" style="border:none;">
							  <tr>
							    <td align="left" style="border:none;"><asp:Button id="btnSubmit" runat="server" CssClass="bnt01" Width="60" Text="发 布" onclick="btnSubmit_Click"></asp:Button></td>
								<td align="right" style="border:none;"><INPUT class="bnt01" style="width:60px; display:inline-table;" onClick="location='index1.aspx'" type="button" value="返 回"></td>
							  </tr>
							</table>
						</TD>
					</TR>
				</TABLE>
			</asp:Panel>
			<asp:Literal id="litMessage" runat="server"></asp:Literal>
			<br>
			<br>
            </div>
		</form>
	</body>
</HTML>
